package org.particlethink.auth;

import org.springframework.security.crypto.password.PasswordEncoder;

public class AllMatchePasswordEncoder implements PasswordEncoder {
    @Override
    public String encode(CharSequence rawPassword) {
        return "";
    }

    @Override
    public boolean matches(CharSequence rawPassword, String encodedPassword) {
        return true; // 系统中所有登录都应该通过，不校验密码，在通过中铁查询用户出问题时就应该直接抛出问题
    }
}
